/**
 * 
 * 
 * ADD CURRENT ITEM TO FOLLOWING SITE...
 * 
 * 
 * 
 * */
package com.components.share{

	import flash.net.URLRequest;
	import flash.net.URLVariables;
	import flash.net.navigateToURL;

	public class AddThis {
		
		public static const FACEBOOK:String = "facebook";
		
		public static const DIGG:String = "digg";
		
		public static const MYSPACE:String = "myspace";
		
		public static const TWITTER:String = "twitter";
		
		public static const GOOGLE:String = "google";
		
		public static const DELICIOUS:String = "delicious";
		
		public static const BLOGGER:String = "blogger";
		
		public static const BEBO:String = "bebo";
		
		public static const HYVES:String = "hyves";
		
		public static const NETVIBES:String = "netvibes";
		
		public static const NETLOG:String = "netlog";
		
		public static const TYPEPAD:String = "typepad";
		
		public static const WORDPRESS:String = "wordpress";
		
		public static const LIVE:String = "live";
		
		public function AddThis() {		
		}
		
		public static function invoke(type:String, url:String, title:String, id:String):void {
			
			var urlVars:URLVariables = new URLVariables;
			
			urlVars["s"] = type;
			
			urlVars["pub"] = id;
			
			urlVars["url"] = url;
			
			urlVars["title"] = title;
			
			var request:URLRequest = new URLRequest("http://addthis.com/bookmark.php");
			
			request.data = urlVars;
			
			navigateToURL(request, "_blank");
		}
	}
	
}